﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace University.Models
{
    public class Subject
    {
        public int SubjectId { get; set; }

        [Required(ErrorMessage = "Please provide name for the lecture")]
        [Display(Name = "Name")]
        public string Name { get; set; }
        public virtual ICollection<ScheduleItem> ScheduleItems { get; set; }
        public virtual ICollection<Mark> Marks { get; set; }
    }
}